<template>
  <section class="service">
      <ul class="servicer-list">
        <!--<li v-for="i in list" :key="i.id">-->
          <!--<div class="servicer-item">-->
            <!--<h2 class="title">{{i.name}}</h2>-->
            <!--<div>-->
              <!--<img :src="i.code" alt="">-->
            <!--</div>-->
            <!--<p class="tip">扫一扫二维码,加我微信</p>-->
          <!--</div>-->
        <!--</li>-->
        <p v-html="info.content">

        </p>
      </ul>

  </section>
</template>

<i18n>
  title.servicecenter:
    en: Service
    zh-CN: 客服中心
</i18n>

<script>
  import {XInput, Group, XButton} from 'vux'

  export default {
    name: 'ServiceCenter',
    components: {
      XInput,
      Group,
      XButton
    },
    data () {
      return {
        list: [
          {id: 1, name: '云网客服一号', code: 'https://o5omsejde.qnssl.com/demo/test1.jpg'},
          {id: 2, name: '云网客服二号', code: 'https://o5omsejde.qnssl.com/demo/test2.jpg'}
        ],
        info: ''
      }
    },
    created () {
      this.getInfo()
    },
    methods: {

      doNext () {
        this.$router.push({path: '/validatesec'})
      },
      getInfo () {
        let vue = this
        let url = 'api/Information/information'
        vue.get({
          url: url,
          params: {
            type: 0
          },
          success: function (data) {
            console.log(data)
            vue.info = data.data
          }
        })
      }
    }
  }
</script>

<style lang="less" scoped>
  .service {
    padding: 0.3rem;
    height: 100%;
    background-color: #fff;
    box-sizing: border-box;
    .servicer-item {
      text-align: center;
      border-bottom: 1px solid #dfdfdf;
      padding: 15px;
      background-color: #fff;
      img {
        width: 250px;
        height: 250px;
      }
      .title {
        margin-bottom: 15px;
      }
      .tip {
        color: #898989;
      }
    }
  }
</style>
